<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/theme.default.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.js"></script>
<script type="text/javascript">
$(function() {
    $("table thead th:eq(0)").data("sorter", false);
    $("#myTable").tablesorter({sortReset: true});
});
</script>
<style><!-- FIXME -->
tr.skip {background-color:#eee}
tr.poor {background-color:#fbb}
tr.good {background-color:#afa}
</style>
</head><body>
<h1 id="smhasher">SMhasher</h1>
<table id="myTable" class="tablesorter">
<thead>
<tr class="header">
<th align="left">Hash function</th>
<th align="right">MiB/sec</th>
<th align="right">cycl./hash</th>
<th align="right">cycl./map</th>
<th align="right">size</th>
<th align="left">Quality problems</th>
</tr>
</thead>
<tbody>
<tr class="skip">
<td align="left"><a href="donothing32.txt">donothing32</a></td>
<td align="right">14924689.47</td>
<td align="right">6.00</td>
<td align="right">-</td>
<td align="right">13</td>
<td align="left">test NOP</td>
</tr>
<tr class="skip">
<td align="left"><a href="donothing64.txt">donothing64</a></td>
<td align="right">14942317.78</td>
<td align="right">6.00</td>
<td align="right">-</td>
<td align="right">13</td>
<td align="left">test NOP</td>
</tr>
<tr class="skip">
<td align="left"><a href="donothing128.txt">donothing128</a></td>
<td align="right">14943678.61</td>
<td align="right">6.00</td>
<td align="right">-</td>
<td align="right">13</td>
<td align="left">test NOP</td>
</tr>
<tr class="skip">
<td align="left"><a href="NOP_OAAT_read64.txt">NOP_OAAT_read64</a></td>
<td align="right">29794.83</td>
<td align="right">35.50</td>
<td align="right">-</td>
<td align="right">47</td>
<td align="left">test NOP</td>
</tr>
<tr class="skip">
<td align="left"><a href="BadHash.txt">BadHash</a></td>
<td align="right">522.75</td>
<td align="right">96.39</td>
<td align="right">-</td>
<td align="right">47</td>
<td align="left">test FAIL</td>
</tr>
<tr class="skip">
<td align="left"><a href="sumhash.txt">sumhash</a></td>
<td align="right">7135.41</td>
<td align="right">31.14</td>
<td align="right">-</td>
<td align="right">363</td>
<td align="left">test FAIL</td>
</tr>
<tr class="skip">
<td align="left"><a href="sumhash32.txt">sumhash32</a></td>
<td align="right">23873.87</td>
<td align="right">22.49</td>
<td align="right">-</td>
<td align="right">863</td>
<td align="left">test FAIL</td>
</tr>
<tr class="skip">
<td align="left"><a href="multiply_shift.txt">multiply_shift</a></td>
<td align="right">4909.57</td>
<td align="right">45.28</td>
<td align="right">too slow</td>
<td align="right">345</td>
<td align="left">fails all tests</td>
</tr>
<tr class="skip">
<td align="left"><a href="pair_multiply_shift.txt">pair_multiply_shift</a></td>
<td align="right">13604.46</td>
<td align="right">31.71</td>
<td align="right">too slow</td>
<td align="right">609</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><hr/></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="poor">
<td align="left"><a href="crc32.txt">crc32</a></td>
<td align="right">392.05</td>
<td align="right">130.08</td>
<td align="right">199.87 (3) </td>
<td align="right">422</td>
<td align="left">insecure, 8590x collisions, distrib</td>
</tr>
<tr class="poor">
<td align="left"><a href="md5_32a.txt">md5_32a</a></td>
<td align="right">351.96</td>
<td align="right">670.99</td>
<td align="right">863.30 (23)</td>
<td align="right">4419</td>
<td align="left">8590x collisions, distrib</td>
</tr>
<tr class="good">
<td align="left"><a href="sha1_32a.txt">sha1_32a</a></td>
<td align="right">353.03</td>
<td align="right">1385.80</td>
<td align="right">1759.94 (5) </td>
<td align="right">5126</td>
<td align="left">collisions, 36.6% distrib</td>
</tr>
<tr class="good">
<td align="left"><a href="md5-128.txt">md5-128</a></td>
<td align="right">317.78</td>
<td align="right">730.30</td>
<td align="right">830.69 (7)</td>
<td align="right">4419</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="sha1-160.txt">sha1-160</a></td>
<td align="right">364.95</td>
<td align="right">1470.55</td>
<td align="right">1776.73 (8)</td>
<td align="right">5126</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="sha2-224.txt">sha2-224</a></td>
<td align="right">147.13</td>
<td align="right">1354.81</td>
<td align="right">1575.09 (26)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="sha2-224_64.txt">sha2-224_64</a></td>
<td align="right">147.60</td>
<td align="right">1360.10</td>
<td align="right">1582.71 (26)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="poor">
<td align="left"><a href="sha2-256.txt">sha2-256</a></td>
<td align="right">147.80</td>
<td align="right">1374.90</td>
<td align="right">1562.15 (21)</td>
<td align="right"></td>
<td align="left">Moment Chi2 4</td>
</tr>
<tr class="poor">
<td align="left"><a href="sha2-256_64.txt">sha2-256_64</a></td>
<td align="right">148.01</td>
<td align="right">1376.34</td>
<td align="right">1627.12 (10)</td>
<td align="right"></td>
<td align="left">Moment Chi2 7</td>
</tr>
<tr class="poor">
<td align="left"><a href="sha1ni.txt">sha1ni</a></td>
<td align="right">2019.96</td>
<td align="right">135.84</td>
<td align="right">564.40 (6) </td>
<td align="right">989</td>
<td align="left">insecure,sanity, Permutation, Zeroes, amd epyc only</td>
</tr>
<tr class="poor">
<td align="left"><a href="sha1ni_32.txt">sha1ni_32</a></td>
<td align="right">2019.94</td>
<td align="right">136.82</td>
<td align="right">589.46 (1) </td>
<td align="right">989</td>
<td align="left">insecure,sanity, Permutation, Zeroes, TwoBytes, amd epyc only</td>
</tr>
<tr class="poor">
<td align="left"><a href="sha2ni-256.txt">sha2ni-256</a></td>
<td align="right">1906.77</td>
<td align="right">145.47</td>
<td align="right">603.08 (22)</td>
<td align="right">4241</td>
<td align="left">insecure,sanity, Permutation, Zeroes, amd epyc only</td>
</tr>
<tr class="poor">
<td align="left"><a href="sha2ni-256_64.txt">sha2ni-256_64</a></td>
<td align="right">1920.36</td>
<td align="right">145.47</td>
<td align="right">603.08 (2)</td>
<td align="right">4241</td>
<td align="left">insecure,sanity, Permutation, Zeroes, TwoBytes, amd epyc only</td>
</tr>
<tr class="good">
<td align="left"><a href="blake3_c.txt">blake3_c</a></td>
<td align="right">1233.40</td>
<td align="right">360.68</td>
<td align="right">524.40 (4) </td>
<td align="right"></td>
<td align="left">Moment Chi2, no 32bit portability</td>
</tr>
<tr class="poor">
<td align="left"><a href="rmd128.txt">rmd128</a></td>
<td align="right">332.78</td>
<td align="right">672.35</td>
<td align="right">903.43 (13)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="rmd160.txt">rmd160</a></td>
<td align="right">202.16</td>
<td align="right">1045.79</td>
<td align="right">1199.55 (17)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="rmd256.txt">rmd256</a></td>
<td align="right">356.57</td>
<td align="right">638.30</td>
<td align="right">815.39 (16)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2s-128.txt">blake2s-128</a></td>
<td align="right">295.30</td>
<td align="right">698.09</td>
<td align="right">1182.72 (18)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2s-160.txt">blake2s-160</a></td>
<td align="right">215.01</td>
<td align="right">1026.74</td>
<td align="right">1225.15 (21)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2s-224.txt">blake2s-224</a></td>
<td align="right">207.06</td>
<td align="right">1063.86</td>
<td align="right">1195.43 (20)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2s-256.txt">blake2s-256</a></td>
<td align="right">215.28</td>
<td align="right">1014.88</td>
<td align="right">1169.98 (16)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2s-256_64.txt">blake2s-256_64</a></td>
<td align="right">211.52</td>
<td align="right">1044.22</td>
<td align="right">1212.51 (17)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2b-160.txt">blake2b-160</a></td>
<td align="right">356.08</td>
<td align="right">1236.84</td>
<td align="right">1408.02 (21)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="blake2b-224.txt">blake2b-224</a></td>
<td align="right">356.59</td>
<td align="right">1228.50</td>
<td align="right">1438.52 (22)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="poor">
<td align="left"><a href="blake2b-256.txt">blake2b-256</a></td>
<td align="right">355.97</td>
<td align="right">1232.22</td>
<td align="right">1393.08 (16)</td>
<td align="right"></td>
<td align="left">Sparse high 32-bit</td>
</tr>
<tr class="poor">
<td align="left"><a href="blake2b-256_64.txt">blake2b-256_64</a></td>
<td align="right">356.97</td>
<td align="right">1222.76</td>
<td align="right">1392.40 (21)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="sha3-256.txt">sha3-256</a></td>
<td align="right">100.58</td>
<td align="right">3877.18</td>
<td align="right">4430.89 (43)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="sha3-256_64.txt">sha3-256_64</a></td>
<td align="right">100.57</td>
<td align="right">3909.00</td>
<td align="right">4405.76 (40)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="poor">
<td align="left"><a href="hasshe2.txt">hasshe2</a></td>
<td align="right">2357.32</td>
<td align="right">76.10</td>
<td align="right">172.41 (3)</td>
<td align="right">445</td>
<td align="left">insecure, Permutation,TwoBytes,Zeroes,Seed</td>
</tr>
<tr class="poor">
<td align="left"><a href="crc32_hw.txt">crc32_hw</a></td>
<td align="right">6292.63</td>
<td align="right">30.38</td>
<td align="right">204.19 (18)</td>
<td align="right">653</td>
<td align="left">insecure, 100% bias, collisions, distrib, machine-specific (x86 SSE4.2)</td>
</tr>
<tr class="poor">
<td align="left"><a href="crc32_hw1.txt">crc32_hw1</a></td>
<td align="right">23382.53</td>
<td align="right">36.84</td>
<td align="right">197.39 (20)</td>
<td align="right">671</td>
<td align="left">insecure, 100% bias, collisions, distrib, machine-specific (x86 SSE4.2)</td>
</tr>
<tr class="poor">
<td align="left"><a href="crc64_hw.txt">crc64_hw</a></td>
<td align="right">8387.01</td>
<td align="right">29.96</td>
<td align="right">161.44 (13)</td>
<td align="right">652</td>
<td align="left">insecure, 100% bias, collisions, distrib, machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="poor">
<td align="left"><a href="crc32_pclmul.txt">crc32_pclmul</a></td>
<td align="right">1932125.24</td>
<td align="right">6.50</td>
<td align="right"> - </td>
<td align="right">481</td>
<td align="left">insecure, 100% bias, collisions, distrib, machine-specific (x86 PCLMUL)</td>
</tr>
<tr class="poor">
<td align="left"><a href="FastestHash.txt">FastestHash</a></td>
<td align="right">14635755.30</td>
<td align="right">16.04</td>
<td align="right">357.77 (3) </td>
<td align="right"></td>
<td align="left">insecure, zeros, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="fibonacci.txt">fibonacci</a></td>
<td align="right">9462.17</td>
<td align="right">33.52</td>
<td align="right">774.87 (14)</td>
<td align="right">1692</td>
<td align="left">zeros, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV1a.txt">FNV1a</a></td>
<td align="right">780.53</td>
<td align="right">69.65</td>
<td align="right">197.06 (20)</td>
<td align="right">204</td>
<td align="left">zeros, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV1A_Totenschiff.txt">FNV1A_Totenschiff</a></td>
<td align="right">6235.86</td>
<td align="right">36.56</td>
<td align="right">214.61 (18)</td>
<td align="right">270</td>
<td align="left">zeros, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV1A_Pippip_Yurii.txt">FNV1A_Pippip_Yurii</a></td>
<td align="right">6238.08</td>
<td align="right">37.22</td>
<td align="right">218.06 (25)</td>
<td align="right">147</td>
<td align="left">sanity, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV1a_YT.txt">FNV1a_YT</a></td>
<td align="right">9618.28</td>
<td align="right">28.26</td>
<td align="right">192.33 (18)</td>
<td align="right">321</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV2.txt">FNV2</a></td>
<td align="right">6244.26</td>
<td align="right">38.25</td>
<td align="right">168.46 (15)</td>
<td align="right">278</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="FNV64.txt">FNV64</a></td>
<td align="right">791.82</td>
<td align="right">69.82</td>
<td align="right">184.87 (19)</td>
<td align="right">79</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="fletcher2.txt">fletcher2</a></td>
<td align="right">11809.88</td>
<td align="right">26.85</td>
<td align="right">321.91 (13)</td>
<td align="right">248</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="fletcher4.txt">fletcher4</a></td>
<td align="right">11973.55</td>
<td align="right">26.94</td>
<td align="right">324.53 (12)</td>
<td align="right">371</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="bernstein.txt">bernstein</a></td>
<td align="right">791.83</td>
<td align="right">67.15</td>
<td align="right">200.11 (17)</td>
<td align="right">41</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="sdbm.txt">sdbm</a></td>
<td align="right">785.84</td>
<td align="right">67.02</td>
<td align="right">209.44 (17)</td>
<td align="right">41</td>
<td align="left">fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="x17.txt">x17</a></td>
<td align="right">522.46</td>
<td align="right">97.51</td>
<td align="right">214.03 (18)</td>
<td align="right">79</td>
<td align="left">99.98% bias, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="JenkinsOOAT.txt">JenkinsOOAT</a></td>
<td align="right">446.57</td>
<td align="right">142.43</td>
<td align="right">245.34 (20)</td>
<td align="right">153</td>
<td align="left">53.5% bias, fails all tests</td>
</tr>
<tr class="poor">
<td align="left"><a href="JenkinsOOAT_perl.txt">JenkinsOOAT_perl</a></td>
<td align="right">445.69</td>
<td align="right">118.69</td>
<td align="right">222.62 (18)</td>
<td align="right">65</td>
<td align="left">1.5-11.5% bias, 7.2x collisions, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="MicroOAAT.txt">MicroOAAT</a></td>
<td align="right">950.84</td>
<td align="right">62.23</td>
<td align="right">233.94 (19)</td>
<td align="right">68</td>
<td align="left">100% bias, distrib</td>
</tr>
<tr class="poor">
<td align="left"><a href="VHASH_32.txt">VHASH_32</a></td>
<td align="right">9502.36</td>
<td align="right">86.97</td>
<td align="right">273.67 (8) </td>
<td align="right">1231</td>
<td align="left">sanity, Seed, MomentChi2</td>
</tr>
<tr class="poor">
<td align="left"><a href="VHASH_64.txt">VHASH_64</a></td>
<td align="right">9449.24</td>
<td align="right">86.97</td>
<td align="right">253.42 (9) </td>
<td align="right">1231</td>
<td align="left">sanity, Seed, Sparse</td>
</tr>
<tr class="poor">
<td align="left"><a href="farsh32.txt">farsh32</a></td>
<td align="right">14053.09</td>
<td align="right">74.29</td>
<td align="right">245.33 (3)</td>
<td align="right">944</td>
<td align="left">insecure: AppendedZeroes, collisions+bias, MomentChi2, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="farsh64.txt">farsh64</a></td>
<td align="right">7216.29</td>
<td align="right">130.30</td>
<td align="right">302.44 (3)</td>
<td align="right">944</td>
<td align="left">insecure: AppendedZeroes, collisions+bias, MomentChi2, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="jodyhash32.txt">jodyhash32</a></td>
<td align="right">1386.76</td>
<td align="right">46.13</td>
<td align="right">232.12 (21)</td>
<td align="right">102</td>
<td align="left">bias, collisions, distr, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="jodyhash64.txt">jodyhash64</a></td>
<td align="right">2765.84</td>
<td align="right">40.89</td>
<td align="right">222.41 (20)</td>
<td align="right">118</td>
<td align="left">bias, collisions, distr, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="lookup3.txt">lookup3</a></td>
<td align="right">1702.13</td>
<td align="right">48.25</td>
<td align="right">243.90 (19)</td>
<td align="right">341</td>
<td align="left">28% bias, collisions, 30% distr</td>
</tr>
<tr class="poor">
<td align="left"><a href="superfast.txt">superfast</a></td>
<td align="right">1899.70</td>
<td align="right">54.19</td>
<td align="right">240.49 (19)</td>
<td align="right">210</td>
<td align="left">91% bias, 5273.01x collisions, 37% distr, BIC</td>
</tr>
<tr class="poor">
<td align="left"><a href="MurmurOAAT.txt">MurmurOAAT</a></td>
<td align="right">437.03</td>
<td align="right">117.00</td>
<td align="right">236.62 (19)</td>
<td align="right">47</td>
<td align="left">collisions, 99.998% distr., BIC, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="Crap8.txt">Crap8</a></td>
<td align="right">3060.17</td>
<td align="right">35.25</td>
<td align="right">242.59 (20)</td>
<td align="right">342</td>
<td align="left">2.42% bias, collisions, 2% distrib</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur2.txt">Murmur2</a></td>
<td align="right">3032.69</td>
<td align="right">41.97</td>
<td align="right">233.68 (19)</td>
<td align="right">358</td>
<td align="left">1.7% bias, 81x coll, 1.7% distrib, BIC</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur2A.txt">Murmur2A</a></td>
<td align="right">3033.56</td>
<td align="right">46.63</td>
<td align="right">227.70 (20)</td>
<td align="right">407</td>
<td align="left">12.7% bias, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur2B.txt">Murmur2B</a></td>
<td align="right">4728.94</td>
<td align="right">47.90</td>
<td align="right">192.82 (18)</td>
<td align="right">433</td>
<td align="left">1.8% bias, collisions, 3.4% distrib, BIC</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur2C.txt">Murmur2C</a></td>
<td align="right">3817.99</td>
<td align="right">47.67</td>
<td align="right">207.53 (18)</td>
<td align="right">444</td>
<td align="left">91% bias, collisions, distr, BIC, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur3A.txt">Murmur3A</a></td>
<td align="right">2347.90</td>
<td align="right">51.38</td>
<td align="right">237.58 (19)</td>
<td align="right">351</td>
<td align="left">Moment Chi2 69</td>
</tr>
<tr class="poor">
<td align="left"><a href="PMurHash32.txt">PMurHash32</a></td>
<td align="right">2281.97</td>
<td align="right">58.65</td>
<td align="right">259.59 (20)</td>
<td align="right">1862</td>
<td align="left">Moment Chi2 69</td>
</tr>
<tr class="poor">
<td align="left"><a href="Murmur3C.txt">Murmur3C</a></td>
<td align="right">3093.46</td>
<td align="right">68.53</td>
<td align="right">256.49 (19)</td>
<td align="right">859</td>
<td align="left">LongNeighbors, DiffDist</td>
</tr>
<tr class="poor">
<td align="left"><a href="PMPML_32.txt">PMPML_32</a></td>
<td align="right">6516.19</td>
<td align="right">52.60</td>
<td align="right">227.47 (8) </td>
<td align="right">1084</td>
<td align="left">Avalanche >512, unseeded: Seed, MomentChi2</td>
</tr>
<tr class="good">
<td align="left"><a href="PMPML_64.txt">PMPML_64</a></td>
<td align="right">8119.83</td>
<td align="right">61.49</td>
<td align="right">186.24 (4)</td>
<td align="right">1305</td>
<td align="left">unseeded: Seed, MomentChi2</td>
</tr>
<tr class="poor">
<td align="left"><a href="xxHash32.txt">xxHash32</a></td>
<td align="right">5868.40</td>
<td align="right">49.08</td>
<td align="right">222.09 (21)</td>
<td align="right">738</td>
<td align="left">LongNeighbors, collisions with 4bit diff, MomentChi2 220</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash64_1.txt">metrohash64_1</a></td>
<td align="right">9274.60</td>
<td align="right">50.85</td>
<td align="right">201.37 (19)</td>
<td align="right">624</td>
<td align="left">LongNeighbors, BIC, MomentChi2</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash64_2.txt">metrohash64_2</a></td>
<td align="right">9281.99</td>
<td align="right">51.04</td>
<td align="right">191.44 (20)</td>
<td align="right">627</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash64crc_1.txt">metrohash64crc_1</a></td>
<td align="right">13641.79</td>
<td align="right">56.19</td>
<td align="right">193.28 (19)</td>
<td align="right">632</td>
<td align="left">cyclic collisions 8 byte, BIC, MomentChi2, machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash64crc_2.txt">metrohash64crc_2</a></td>
<td align="right">13550.77</td>
<td align="right">56.17</td>
<td align="right">204.84 (18)</td>
<td align="right">632</td>
<td align="left">cyclic collisions 8 byte, BIC, machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash128_1.txt">metrohash128_1</a></td>
<td align="right">9263.64</td>
<td align="right">79.71</td>
<td align="right">240.70 (20)</td>
<td align="right">773</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="metrohash128_2.txt">metrohash128_2</a></td>
<td align="right">9060.39</td>
<td align="right">79.74</td>
<td align="right">240.46 (20)</td>
<td align="right">773</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="cmetrohash64_1o.txt">cmetrohash64_1o</a></td>
<td align="right">8851.32</td>
<td align="right">50.59</td>
<td align="right">193.19 (18)</td>
<td align="right">3506</td>
<td align="left">LongNeighbors, MomentChi2</td>
</tr>
<tr class="poor">
<td align="left"><a href="cmetrohash64_1.txt">cmetrohash64_1</a></td>
<td align="right">9074.37</td>
<td align="right">50.92</td>
<td align="right">201.33 (18)</td>
<td align="right">652</td>
<td align="left">LongNeighbors, BIC, MomentChi2</td>
</tr>
<tr class="poor">
<td align="left"><a href="cmetrohash64_2.txt">cmetrohash64_2</a></td>
<td align="right">9302.98</td>
<td align="right">51.09</td>
<td align="right">194.04 (18)</td>
<td align="right">655</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="City64noSeed.txt">City64noSeed</a></td>
<td align="right">8873.07</td>
<td align="right">38.70</td>
<td align="right">171.57 (4) </td>
<td align="right">1038</td>
<td align="left">Avalanche, Sparse, TwoBytes, MomentChi2, Seed</td>
</tr>
<tr class="poor">
<td align="left"><a href="City64.txt">City64</a></td>
<td align="right">9213.05</td>
<td align="right">55.52</td>
<td align="right">200.24 (2) </td>
<td align="right">1120</td>
<td align="left">Sparse, TwoBytes</td>
</tr>
<tr class="poor">
<td align="left"><a href="aesnihash.txt">aesnihash</a></td>
<td align="right">2963.39</td>
<td align="right">71.24</td>
<td align="right">217.73 (3) </td>
<td align="right"></td>
<td align="left">fails most tests, machine-specific (x64 AES-NI)</td>
</tr>
<tr class="poor">
<td align="left"><a href="falkhash.txt">falkhash</a></td>
<td align="right">20374.98</td>
<td align="right">169.84</td>
<td align="right">328.42 (5) </td>
<td align="right">264</td>
<td align="left">LongNeighbors, machine-specific (x64 AES-NI)</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha1_64le.txt">t1ha1_64le</a></td>
<td align="right">9541.33</td>
<td align="right">39.33</td>
<td align="right">239.04 (16)</td>
<td align="right">517</td>
<td align="left">Avalanche</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha1_64be.txt">t1ha1_64be</a></td>
<td align="right">6848.76</td>
<td align="right">41.08</td>
<td align="right">230.22 (17)</td>
<td align="right">555</td>
<td align="left">Avalanche</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha0_32le.txt">t1ha0_32le</a></td>
<td align="right">4913.74</td>
<td align="right">55.00</td>
<td align="right">233.39 (18)</td>
<td align="right">509</td>
<td align="left">Sparse, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha0_32be.txt">t1ha0_32be</a></td>
<td align="right">4241.68</td>
<td align="right">55.12</td>
<td align="right">236.50 (18)</td>
<td align="right">533</td>
<td align="left">Sparse, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha2_stream.txt">t1ha2_stream</a></td>
<td align="right">8558.73</td>
<td align="right">93.45</td>
<td align="right">305.03 (16)</td>
<td align="right">1665</td>
<td align="left">Sparse, Permutation, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="t1ha2_stream128.txt">t1ha2_stream128</a></td>
<td align="right">8846.52</td>
<td align="right">117.19</td>
<td align="right">270.95 (2) </td>
<td align="right">1665</td>
<td align="left">Sparse, Permutation, LongNeighbors</td>
</tr>
<tr class="poor">
<td align="left"><a href="xxh3.txt">xxh3</a></td>
<td align="right">16377.47</td>
<td align="right">37.20</td>
<td align="right">179.88 (1) </td>
<td align="right">744</td>
<td align="left">Moment Chi2 14974, BIC</td>
</tr>
<tr class="poor">
<td align="left"><a href="xxh3low.txt">xxh3low</a></td>
<td align="right">16403.22</td>
<td align="right">37.19</td>
<td align="right">184.18 (2) </td>
<td align="right">756</td>
<td align="left">Moment Chi2 1.8e+9 !</td>
</tr>
<tr class="poor">
<td align="left"><a href="xxh128.txt">xxh128</a></td>
<td align="right">15117.76</td>
<td align="right">44.70</td>
<td align="right">178.72 (1) </td>
<td align="right">1012</td>
<td align="left">Moment Chi2 14974</td>
</tr>
<tr class="poor">
<td align="left"><a href="xxh128low.txt">xxh128low</a></td>
<td align="right">15109.04</td>
<td align="right">38.98</td>
<td align="right">174.91 (3) </td>
<td align="right">1012</td>
<td align="left">Moment Chi2 14974, BIC</td>
</tr>
<tr class="poor">
<td align="left"><hr/></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="tifuhash_64.txt">tifuhash_64</a></td>
<td align="right">34.72</td>
<td align="right">1583.06</td>
<td align="right">1135.79 (7) </td>
<td align="right">276</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="floppsyhash_64.txt">floppsyhash_64</a></td>
<td align="right">191.95</td>
<td align="right">450.93</td>
<td align="right">821.11 (152)</td>
<td align="right">623</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="chaskey.txt">chaskey</a></td>
<td align="right">735.85</td>
<td align="right">168.05</td>
<td align="right">336.07 (4) </td>
<td align="right">1609</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="SipHash.txt">SipHash</a></td>
<td align="right">958.78</td>
<td align="right">141.84</td>
<td align="right">278.15 (3) </td>
<td align="right">1071</td>
<td align="left"></td>
</tr>
<tr class="poor">
<td align="left"><a href="HalfSipHash.txt">HalfSipHash</a></td>
<td align="right">741.59</td>
<td align="right">122.25</td>
<td align="right">256.22 (20)</td>
<td align="right">700</td>
<td align="left">zeroes</td>
</tr>
<tr class="good">
<td align="left"><a href="beamsplitter.txt">beamsplitter</a></td>
<td align="right">551.55</td>
<td align="right">914.29</td>
<td align="right">1005.56 (14)</td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="GoodOAAT.txt">GoodOAAT</a></td>
<td align="right">1052.90</td>
<td align="right">70.80</td>
<td align="right">208.00 (3) </td>
<td align="right">237</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="SipHash13.txt">SipHash13</a></td>
<td align="right">1762.44</td>
<td align="right">104.61</td>
<td align="right">304.84 (17)</td>
<td align="right">778</td>
<td align="left">0.9% bias</td>
</tr>
<tr class="good">
<td align="left"><a href="TSip.txt">TSip</a></td>
<td align="right">3346.72</td>
<td align="right">60.02</td>
<td align="right">203.82 (5) </td>
<td align="right">519</td>
<td align="left">!msvc</td>
</tr>
<tr class="good">
<td align="left"><a href="seahash.txt">seahash</a></td>
<td align="right">4529.38</td>
<td align="right">65.58</td>
<td align="right">240.34 (7) </td>
<td align="right">871</td>
<td align="left">!msvc</td>
</tr>
<tr class="good">
<td align="left"><a href="seahash32low.txt">seahash32low</a></td>
<td align="right">4524.65</td>
<td align="right">65.60</td>
<td align="right">253.50 (3) </td>
<td align="right">871</td>
<td align="left">!msvc</td>
</tr>
<tr class="good">
<td align="left"><a href="clhash.txt">clhash</a></td>
<td align="right">4405.28</td>
<td align="right">85.35</td>
<td align="right">288.20 (14)</td>
<td align="right">1809</td>
<td align="left">machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="good">
<td align="left"><a href="HighwayHash64.txt">HighwayHash64</a></td>
<td align="right">6239.64</td>
<td align="right">98.65</td>
<td align="right">263.94 (4) </td>
<td align="right">2546</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="BEBB4185.txt">BEBB4185</a></td>
<td align="right">2655.75</td>
<td align="right">241.48</td>
<td align="right">420.58 (7) </td>
<td align="right"></td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="Murmur3F.txt">Murmur3F</a></td>
<td align="right">5076.20</td>
<td align="right">51.66</td>
<td align="right">222.39 (18)</td>
<td align="right">699</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="fasthash32.txt">fasthash32</a></td>
<td align="right">4658.24</td>
<td align="right">50.50</td>
<td align="right">181.96 (2) </td>
<td align="right">566</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="fasthash64.txt">fasthash64</a></td>
<td align="right">4657.64</td>
<td align="right">47.71</td>
<td align="right">168.22 (3) </td>
<td align="right">509</td>
<td align="left">Moment Chi2 5159 !</td>
</tr>
<tr class="good">
<td align="left"><a href="MUM.txt">MUM</a></td>
<td align="right">6890.75</td>
<td align="right">39.90</td>
<td align="right">174.94 (3) </td>
<td align="right">1912</td>
<td align="left">machine-specific (32/64 differs)</td>
</tr>
<tr class="good">
<td align="left"><a href="MUMlow.txt">MUMlow</a></td>
<td align="right">6893.98</td>
<td align="right">46.02</td>
<td align="right">191.55 (3) </td>
<td align="right">1912</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="mirhash.txt">mirhash</a></td>
<td align="right">5453.50</td>
<td align="right">42.31</td>
<td align="right">163.35 (2) </td>
<td align="right">1112</td>
<td align="left">LongNeighbors, machine-specific (32/64 differs)</td>
</tr>
<tr class="good">
<td align="left"><a href="mirhash32low.txt">mirhash32low</a></td>
<td align="right">5452.48</td>
<td align="right">42.31</td>
<td align="right">190.92 (2) </td>
<td align="right">1112</td>
<td align="left">LongNeighbors, machine-specific (32/64 differs)</td>
</tr>
<tr class="good">
<td align="left"><a href="mirhashstrict.txt">mirhashstrict</a></td>
<td align="right">2217.70</td>
<td align="right">65.39</td>
<td align="right">175.38 (3) </td>
<td align="right">1112</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="mirhashstrict32low.txt">mirhashstrict32low</a></td>
<td align="right">2217.87</td>
<td align="right">64.72</td>
<td align="right">188.44 (4) </td>
<td align="right">1112</td>
<td align="left">MomentChi2 9</td>
</tr>
<tr class="good">
<td align="left"><a href="City32.txt">City32</a></td>
<td align="right">3833.52</td>
<td align="right">52.97</td>
<td align="right">211.69 (4) </td>
<td align="right">1319</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="City64low.txt">City64low</a></td>
<td align="right">9209.88</td>
<td align="right">63.55</td>
<td align="right">274.62 (17)</td>
<td align="right">1120</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="City128.txt">City128</a></td>
<td align="right">9747.33</td>
<td align="right">77.22</td>
<td align="right">269.02 (14)</td>
<td align="right">1841</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="CityCrc128.txt">CityCrc128</a></td>
<td align="right">12958.29</td>
<td align="right">77.31</td>
<td align="right">267.14 (17)</td>
<td align="right">295</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="FarmHash32.txt">FarmHash32</a></td>
<td align="right">16663.96</td>
<td align="right">63.67</td>
<td align="right">265.35 (19)</td>
<td align="right">11489</td>
<td align="left">machine-specific (x64 SSE4/AVX)</td>
</tr>
<tr class="good">
<td align="left"><a href="FarmHash64.txt">FarmHash64</a></td>
<td align="right">8476.56</td>
<td align="right">65.05</td>
<td align="right">251.81 (17)</td>
<td align="right">3758</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="FarmHash128.txt">FarmHash128</a></td>
<td align="right">9814.32</td>
<td align="right">82.06</td>
<td align="right">229.38 (4) </td>
<td align="right">163</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="farmhash32_c.txt">farmhash32_c</a></td>
<td align="right">17335.51</td>
<td align="right">63.77</td>
<td align="right">277.75 (18)</td>
<td align="right">762</td>
<td align="left">machine-specific (x64 SSE4/AVX)</td>
</tr>
<tr class="good">
<td align="left"><a href="farmhash64_c.txt">farmhash64_c</a></td>
<td align="right">8335.98</td>
<td align="right">77.01</td>
<td align="right">266.15 (18)</td>
<td align="right">3688</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="farmhash128_c.txt">farmhash128_c</a></td>
<td align="right">10158.20</td>
<td align="right">98.80</td>
<td align="right">232.00 (2) </td>
<td align="right">1890</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="metrohash64.txt">metrohash64</a></td>
<td align="right">9490.26</td>
<td align="right">49.84</td>
<td align="right">150.49 (3) </td>
<td align="right">624</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="good">
<td align="left"><a href="metrohash128.txt">metrohash128</a></td>
<td align="right">9450.78</td>
<td align="right">78.18</td>
<td align="right">215.79 (2) </td>
<td align="right">624</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="metrohash128crc_1.txt">metrohash128crc_1</a></td>
<td align="right">13668.29</td>
<td align="right">85.94</td>
<td align="right">249.99 (18)</td>
<td align="right">723</td>
<td align="left">machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="good">
<td align="left"><a href="metrohash128crc_2.txt">metrohash128crc_2</a></td>
<td align="right">13600.83</td>
<td align="right">85.92</td>
<td align="right">239.28 (20)</td>
<td align="right">723</td>
<td align="left">machine-specific (x64 SSE4.2)</td>
</tr>
<tr class="good">
<td align="left"><a href="xxHash64.txt">xxHash64</a></td>
<td align="right">8719.19</td>
<td align="right">59.22</td>
<td align="right">210.40 (16)</td>
<td align="right">1999</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="Spooky32.txt">Spooky32</a></td>
<td align="right">9570.40</td>
<td align="right">70.27</td>
<td align="right">250.23 (18)</td>
<td align="right">2221</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="Spooky64.txt">Spooky64</a></td>
<td align="right">9603.18</td>
<td align="right">70.19</td>
<td align="right">231.73 (17)</td>
<td align="right">2221</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="Spooky128.txt">Spooky128</a></td>
<td align="right">9865.67</td>
<td align="right">70.84</td>
<td align="right">185.64 (2) </td>
<td align="right">2221</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="t1ha2_atonce.txt">t1ha2_atonce</a></td>
<td align="right">8192.03</td>
<td align="right">48.48</td>
<td align="right">230.46 (14)</td>
<td align="right">541</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="t1ha2_atonce128.txt">t1ha2_atonce128</a></td>
<td align="right">8382.53</td>
<td align="right">64.15</td>
<td align="right">199.63 (4) </td>
<td align="right">613</td>
<td align="left">LongNeighbors</td>
</tr>
<tr class="good">
<td align="left"><a href="t1ha0_aes_noavx.txt">t1ha0_aes_noavx</a></td>
<td align="right">21782.86</td>
<td align="right">48.17</td>
<td align="right">238.14 (18)</td>
<td align="right">925</td>
<td align="left">LongNeighbors, machine-specific (x86 AES-NI)</td>
</tr>
<tr class="good">
<td align="left"><a href="t1ha0_aes_avx1.txt">t1ha0_aes_avx1</a></td>
<td align="right">22714.85</td>
<td align="right">48.12</td>
<td align="right">226.52 (16)</td>
<td align="right">843</td>
<td align="left">LongNeighbors, machine-specific (x64 AVX)</td>
</tr>
<tr class="good">
<td align="left"><a href="t1ha0_aes_avx2.txt">t1ha0_aes_avx2</a></td>
<td align="right">22345.33</td>
<td align="right">44.38</td>
<td align="right">556.47 (89)</td>
<td align="right">792</td>
<td align="left">LongNeighbors, machine-specific (x64 AVX2)</td>
</tr>
<tr class="good">
<td align="left"><a href="MeowHash.txt">MeowHash</a></td>
<td align="right">36695.65</td>
<td align="right">58.09</td>
<td align="right">233.81 (3)</td>
<td align="right">1764</td>
<td align="left">Sparse low32, machine-specific (x64 AES-NI)</td>
</tr>
<tr class="good">
<td align="left"><a href="MeowHash32low.txt">MeowHash32low</a></td>
<td align="right">17247.34</td>
<td align="right">87.32</td>
<td align="right">245.98 (3)</td>
<td align="right">1764</td>
<td align="left">Sparse, machine-specific (x64 AES-NI)</td>
</tr>
<tr class="good">
<td align="left"><a href="wyhash.txt">wyhash</a></td>
<td align="right">12063.37</td>
<td align="right">38.11</td>
<td align="right">208.49 (3) </td>
<td align="right">938</td>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="wyhash32low.txt">wyhash32low</a></td>
<td align="right">12049.79</td>
<td align="right">37.95</td>
<td align="right">222.17 (4) </td>
<td align="right">922</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h2 id="summary">Summary</h2>
<p>I added some SSE assisted hashes and fast intel/arm CRC32-C and AES HW variants, but not the fastest <a href="https://code.google.com/p/crcutil/">crcutil</a> yet. See <a href="https://github.com/rurban/smhasher/blob/master/doc/crcutil">our crcutil results</a>. See also the old <a href="https://code.google.com/p/smhasher/w/list">https://code.google.com/p/smhasher/w/list</a>.</p>
<p>So the fastest hash functions on x86_64 without quality problems are:</p>
<ul>
<li>wyhash v3</li>
<li>t1ha2_atonce</li>
<li>metrohash64crc (x86 only)</li>
<li>FarmHash (<em>not portable, too machine specific: 64 vs 32bit, old gcc, ...</em>)</li>
<li>Spooky32</li>
<li>fasthash</li>
<li>MUM/mir (<em>different results on 32/64-bit archs</em>)</li>
</ul>
<p>Hash functions for symbol tables or hash tables typically use 32 bit hashes, for databases, file systems and file checksums typically 64 or 128bit, for crypto now starting with 256 bit.</p>
<p>Typical median key size in perl5 is 20, the most common 4. Similar for all other dynamic languages. See <a href="https://github.com/rurban/perl-hash-stats">github.com/rurban/perl-hash-stats</a></p>
<p>When used in a hash table the instruction cache will usually beat the CPU and throughput measured here. In my tests the smallest <code>FNV1A</code> beats the fastest <code>crc32_hw1</code> with <a href="https://github.com/rurban/perl-hash-stats">Perl 5 hash tables</a>. Even if those worse hash functions will lead to more collisions, the overall speed advantage and inline-ability beats the slightly worse quality. See e.g. <a href="https://infosys.cs.uni-saarland.de/publications/p249-richter.pdf">A Seven-Dimensional Analysis of Hashing Methods and its Implications on Query Processing</a> for a concise overview of the best hash table strategies, confirming that the simplest Mult hashing (bernstein, FNV*, x17, sdbm) always beat &quot;better&quot; hash functions (Tabulation, Murmur, Farm, ...) when used in a hash table.</p>
<p>The fast hash functions tested here are recommendable as fast for file digests and maybe bigger databases, but not for 32bit hash tables. The &quot;Quality problems&quot; lead to less uniform distribution, i.e. more collisions and worse performance, but are rarely related to real security attacks, just the 2nd sanity zeroes test against <code>\0</code> invariance is security relevant.</p>
<h2 id="columns">Columns</h2>
<p>MiB/sec: The average of the Bulk key speed test for alignments 0-7 with 262144-byte keys. The higher the better.</p>
<p>cycl./hash: The average of the Small key speed test for 1-31 byte keys. The smaller the better.</p>
<p>cycl./map: The result of the Hashmap test for /usr/dict/words with std::unordered_map get queries, with the standard deviation in brackets. This tests the inlinability of the hash function (see size). The smaller the better.</p>
<p>size: The object size in byte on AMD64. This affects the inlinability in e.g. hash tables. The smaller the better.</p>
<p>Quality problems: See the failures in the linked doc. The less the better.</p>
<h2 id="other">Other</h2>
<ul>
<li><a href="http://www.strchr.com/hash_functions">http://www.strchr.com/hash_functions</a> lists other benchmarks and quality of most simple and fast hash functions.</li>
<li><a href="http://bench.cr.yp.to/primitives-hash.html">http://bench.cr.yp.to/primitives-hash.html</a> lists the benchmarks of all currently tested secure hashes.</li>
<li>The <a href="http://www.larc.usp.br/~pbarreto/hflounge.html">Hash Function Lounge</a> overviews the known weaknesses and attacks.</li>
</ul>
<h2 id="security">SECURITY</h2>
<p>The hash table attacks described in <a href="https://131002.net/siphash/">SipHash</a> against City, Murmur or Perl JenkinsOAAT or at <a href="http://www.larc.usp.br/~pbarreto/hflounge.html">Hash Function Lounge</a> are not included here.</p>
<p>Such an attack avoidance cannot be the problem of the hash function, but only the hash table collision resolution scheme. You can attack every single hash function, even the best and most secure if you detect the seed, e.g. from language (mis-)features, side-channel attacks, collision timings and independly the sort-order, so you need to protect your collision handling scheme from the worst-case O(n), i.e. separate chaining with linked lists. Linked lists chaining allows high load factors, but is very cache-unfriendly. The only recommendable linked list scheme is inlining the key or hash into the array. Nowadays everybody uses fast open addressing, even if the load factor needs to be ~50%, unless you use Cuckoo Hashing.</p>
<p>I.e. the usage of SipHash for their hash table in Python 3.4, ruby, rust, systemd, OpenDNS, Haskell and OpenBSD is pure security theatre. SipHash is not secure enough for security purposes and not fast enough for general usage. Brute-force generation of ~32k collisions need 2-4m for all these hashes. siphash being the slowest needs max 4m, other typically max 2m30s, with &lt;10s for practical 16k collision attacks with all hash functions. Using Murmur is usually slower than a simple Mult, even in the worst case. Provable secure is only uniform hashing, i.e. 2-5 independent Mult or Tabulation, or using a guaranteed logarithmic collision scheme (a tree) or a linear collision scheme, such as Robin Hood or Cockoo hashing with collision counting.</p>
<p>One more note regarding security: Nowadays even SHA1 can be solved in a solver, like Z3 (or faster ones) for practical hash table collision attacks (i.e. 14-20 bits). So all hash functions with less than 256 bits tested here cannot be considered &quot;secure&quot; at all.</p>
<p>The '' vulnerability attack with binary keys is tested in the 2nd Sanity Zero test.</p>
<h2 id="crypto">CRYPTO</h2>
<p>The official NIST hash function testsuite does not do such extensive statistical tests, to search for weak ranges in the bits. Also crypto does not change the initial state, which we do here for our random 32bit seed. Crypto mostly cares about unreversable key -&gt; hash functions without changing the initial fixed state and timings/sidechannel attacks.</p>
<p>The NIST &quot;Cryptographic Algorithm Validation Program&quot; (CAVP) involves the testing of the implementations of FIPS-approved and NIST-recommended cryptographic algorithms. During the NIST SHA-3 competition, the testing methodology was borrowed from the &quot;CAVP&quot;, as the KATs and MCTs of the <a href="https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/sha3/sha3vs.pdf">SHA-3 Competition Test Suite</a> were based on the CAVP tests for SHA-2. In addition to this, the “Extremely Long Message Test,” not present in the CAVP for SHA-2, required the submitters to generate the hash value corresponding to a message with a length of 1 GiB. “NIST - Cryptographic Algorithm Validation Program (CAVP),” June 2017. Available: http://csrc.nist.gov/groups/STM/cavp (No testing source code provided, just high-level descriptions)</p>
<p>Two other independent third party testsuites found an extensive number of bugs and weaknesses in the SHA3 candidates. &quot;Finding Bugs in Cryptographic Hash Function Implementations&quot;, Nicky Mouha, Mohammad S Raunak, D. Richard Kuhn, and Raghu Kacker, 2017. https://eprint.iacr.org/2017/891.pdf</p>
<p>Maybe independent researchers should come together to do a better public SHA-4 round, based on better and more testing methods, open source code for the tests, and using standard industry practices, such as valgrind, address-sanitizer and ubsan to detect obvious bugs.</p>
</body></html>
